<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	    		xmlns:ui="http://java.sun.com/jsf/facelets"
	  			xmlns:h="http://java.sun.com/jsf/html"
	  			xmlns:f="http://java.sun.com/jsf/core"
	  			xmlns:s="http://jboss.org/schema/seam/taglib"
                xmlns:a="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:m="http://metawidget.org/faces"
				template="template.xhtml">

<!-- content -->
<ui:define name="content">
<div class="section">
	<h1>Book Hotel</h1>
</div>
<div class="section">
	<h:form id="booking">
	<fieldset>
	
		<m:metawidget value="#{hotel}" readOnly="#{true}"/>
		
		<s:validateAll>
    
			<m:metawidget value="#{booking}" validatorClass="org.metawidget.faces.component.validator.RequiredValidator">
				<f:param name="divStyleClasses" value="entry,label,required,input,error errors"/>
			</m:metawidget>
			
		</s:validateAll>
		
		<div class="entry errors">
			<h:messages globalOnly="true"/>
		</div>
		
		<div class="entry">
			<div class="label">&#160;</div>
			<div class="input">
				<h:commandButton id="proceed" value="Proceed" action="#{hotelBooking.setBookingDetails}"/>&#160;
				<s:button id="cancel" value="Cancel" action="#{hotelBooking.cancel}"/>
			</div>
		</div>		
	</fieldset>
	</h:form>
</div>
</ui:define>

<!-- sidebar -->
<ui:define name="sidebar">
</ui:define>

</ui:composition>
